import request from '@/utils/request'

/** ****************************分类bnnner*******************************************/

export function getBannerclassList(data) {
  return request({
    url: '/v1/picture/getPictureForPage?current=' + data.current + '&size=' + data.size + '&type=' + data.type,
    method: 'GET'
  })
}

export function addBannerclassList(data) {
  return request({
    url: '/v1/picture/savePicture',
    method: 'POST',
    data: data
  })
}
export function editorBannerclassList(data) {
  return request({
    url: '/v1/picture/updatePicture',
    method: 'PUT',
    data: data
  })
}
export function delBannerclassList(data) {
  return request({
    url: '/v1/picture/deletePicture' + '?pictureId=' + data.pictureId,
    method: 'DELETE',
    data: data
  })
}
export function searchBannerclassList(data) {
  return request({
    url: '/v1/picture?current=' + data.current + '&size=' + data.size + '&advertName=' + data.advertName + '&type=' + data.type,
    method: 'GET'
  })
}
